package com.ljf.common.result;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * Web通用返回结果 数据集合
 *
 * @author LJF
 * @since 2024-01-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class QueryResultModel<T extends Serializable> extends ResultModel implements Serializable {

    @JsonProperty("total")
    @ApiModelProperty(value = "总数")
    private Long total;

    @JsonProperty("rows")
    @ApiModelProperty(value = "数据明细")
    private List<T> rows;

}
